<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>inweo.core.event keydown test</title>
		<script src="../lib/mootools.js"></script>
		<script src="../inweo.js"></script>
		<script type="text/javascript">
			function main() {
				inweo.require("box");
				inweo.require("label");

				var page = new inweo.widgets.vbox(this);

				var label = new inweo.widgets.label();
				label.text("click me to focus");
				page.pack(label);
				
				new inweo.core.event(label).addEvent("keydown", function(event) {
					var text = inweo.widgets.labels.label_0.text();
					inweo.widgets.labels.label_0.text(text + " " + event.key);
				});
			}
		</script>
	</head>
	<body>
	</body>
</html>